//
//  HXDMessageTableViewController.swift
//  weibo
//
//  Created by huxuedong on 15/12/5.
//  Copyright © 2015年 huxuedong. All rights reserved.
//

import UIKit

class HXDMessageTableViewController: HXDVisitorTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        if !userLogin {
            visitorView?.setVisitorInfo(imageName: "visitordiscover_image_message", message: "登录后，别人评论你的微博，发给你的消息，都会在这里收到通知")
            return
        }
        setupUI()
    }
    
    private func setupUI() {
        tabBarItem.badgeValue = "99+"
        navigationItem.leftBarButtonItem = UIBarButtonItem(title: "发现群", style: .Plain, target: self, action: "groupAction")
    }
    
    @objc private func groupAction() {
        let tempViewController = HXDTempViewController()
        navigationController?.pushViewController(tempViewController, animated: true)
    }

}
